complete user registration functionality