Error control in user registration