basic validation added