writing sessions destroy method in application.html