Created a separate method for validation
Created a separate file for user model