Custom reports creation email validation in js