Add validation and callback functions for task.rb