added login and register controllers