refactoring edit_user view, move validation to helpers