Authentication base almost done