Partial commit for user login and register