moved new partment dialog to onActivityResult after login.