fix regression with sign in/up - fixes #284