Finished form validation on both ends.