adds validation checks. Would do callback but I forgot to add a method to student.rb and it is late and it is friday and it is not time for this