Fix authenticate to actually authenticate