Building out user registration function