I have fixed this issue by removing layout: false from render_errors in config.ex
Thank you all for your support.