Fix authentication

Authentication was broken, see #154.