just a simple form validation javascript snippet that require some naming conventions