// Added javascript validation functions (demo)