Signin refactor.