Add initial logging and login code.