some validation added