validation for entry