Added some testing for User model
Refactored user_spec.rb and added validations to models/user.rb