user registration and login revamped