add validations to beer fix #22