connecting auth to front end