Trying to make form's fields required before server response