Please use the Umbraco 6 & 7 included partial view macro file template instead
Simple login / logout for default Asp Net Membership (standard Umbraco members handling) with a single Razor macro. Plain html form + postback (webforms form runat = "server" not needed).
add login page
setup standard member functionality (members section, create a member type, and a member to try the login)
add macro to your login page
Screencast showing installation and setup procedure: http://screencast.com/t/nPnXqvgDj
Source : http://gist.github.com/874194
Change markup if needed in the loginrazor.cshtml file.