Finishing touches on login/logout.