Fixed login bug in MainActivity