pass object to validate_data when editing
Signed-off-by: JohnMave126 <johnmave126@gmail.com>