Added sign-in check