Added CSRF code to login and registor views