wiring up authentication (kinda)