Form validation controller fix