Fixing error where the email error changes into two brackets