Mostly finished Authentication.