An educational establishment maintained wholly or principally for students of one sex, race, or religious belief, or for students with a particular disability, or for students in a particular age group, or the authority responsible for the control of any such establishment, does not commit a breach of section 57 by refusing to admit students of a different sex, race, or religious belief, or students not having that disability or not being in that age group.