signin and sign out functionality added to each page