adding in checks for browserid post functionality