Store accountinfo in login function.