Simple client side validation