tring different kind of front-end validations