Add more error checking in auth