Fix bug where edit time fields were not populating correctly. Link function is precompile so calling separateSeconds directly off the link function did not work because the seconds were not yet set.

Also add validation for fields