Changed button type to submit.