modified mechanism for checking whether user is logged in or not again