Finished coding javascript form validation functions.