Working in login and register user