Use javascript redirect instead of location header
Use javascript redirect instead of location header
Added echoErrors flag