bug fix in users edit functionality