added validation to person.rb model