Working on client side validations directive