gems: add client side validation