Fixed error submission url and changed to constant