Implemented user registration