Setup for logging in.