TRUNK-2498: Validate email address in user options page

Against OMRS v1.8.x: https://tickets.openmrs.org/browse/TRUNK-2498