validation added to the forms