edited registration and login