validations of last page