added validation function to base controller, added sql datetime helper functions to utility class