setting up user on pages and controller