adding checked exception to the postAuth() method