Ensured that administrator cannot enter an invalid time range