Fix layout IDs
Fix bug for group contacts, where isValidEmail did not handle multiple email addresses