get page by id
removing some logging and using middleware instead
updating the new functions to create
initial validation setup