Form validation for creating task