change error better code in application.html