added way to login and register