Changed how login is handled.