Implemented poor solution to prevent form submission.