Fixed a bug with double submits. Added a check to the name.