added login, register and forgotpassword controllers and templates