Password logic in editing user