fixed getusername in mainactivity