corrected the validation to check existing rights
added pre edit page