Classrooms javascript validations