added server-side validation to edit users form