first draft of user registration func