adding rspec tests for user validation