#186 solved. add validation

#186  solved