Solved login bugs for SuperAdmin