Try to fix login check