Skipping input types button and submit