Updates for user login and register