updated user registration validation