Implemented user registration, log in, log out