Is possible to create obligatory fields work only in the submit button?