deal with page refresh

added a functionality if page is refreshed check if user is logged in
and update the user list