small fix to user registration