fixing issue with rejection email not being sent out.