Signing in and out, regex fixes