pushing error while adding attachment to error page