Working login and register.