remove echos before redirecting

I know it's just an example, but the echos cause a header already sent error
Merge pull request #75 from adamholte/develop

remove echos before redirecting