Fix weird error with objects id in form validation