login and register updated