simple validator script as a starting point for the client side validation