Javascript form validation complete with minor non critical bug.