data validation added