Render template rather than redirect
Add some logging to debug server issues