added validations to page model