Fix error when registering school with blank fields.