changed user registration and login