Conditions not populating email address in the hidden field correctly