Why function required of my form don't action?