Added time comparison so start time can no longer be larger than current time