Authentication almost working.