Form is submitted when modal submit is clicked.