a little bit of client side validations