Added user function with route for user page.