Some error checking in oauth and dashboard actions.