added validity and rspec testing for presence of email and name