Added error messages for invalid time.
Another bugfix. Now even if start time has non zero minutes everything should work.