Set button type to prevent form being submitted