Clean up create_task method - get rid of ugly conditional
Remove begin/rescue from validate_index, modify create_task accordingly