fix(login): must return promise from onPrepare hook.