JS validation added