added basic user registration and login