Edit user

Fix issues when modifying user details.
see https://trac.openmicroscopy.org.uk/ome/ticket/10567