[REFACTOR] Created a UserValidation class to encapsulate validation logic better