updating auth to add error checking and trying to get users creation to work