fixed login in appmain activity