Fixed some errors, finally got relations work in forms