minor modifications to user registration