moved accountSignIn code