added validation and error message