Updated login and register