Added unit/test cases to user model, validations to fields