check if user is logged in user
bugfix