Added error feedback in template