Add some error checking for time. Fix route creation/edit bug