Set up login process.