refactored out time parsing and validation to it's own method
also removed debugging puts statements