Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Please confer Zariski's Main Theorem, pp. 288-289 of Mumford's "Red Book of Varieties and Schemes". Using the "original form", $f$ is an open immersion. Using the hypothesis about bijectivity on closed points, $f$ is an isomorphism.