Login widget now checks if the user is logged in