Please use the Umbraco 6 & 7 included partial view macro file template instead
==============================================================
Blog post http://24days.in/umbraco/2012/creating-a-login-form-with-umbraco-mvc-surfacecontroller/
Updated to support url redirect and logout, thanks to the comments
Check out included sample view for a partial view
Code is at https://github.com/joeriks/UmbracoMvcLogin/