Implemented user registration, Closes #3