Changed registration process to stateless
csrf workaround