simple validation added