modified teachers_spec.rb for teacher registration