fix for user page
add sign out function and cookie