Adds prevent default on registration form