succesfully done in registration and login but still have minor bugs in login