Update page validation and add and bind agreement api to agreements.