Done some client side validation