My validate script for client side validation