Adding data in two tables simul;taneously with Validations

There is an easier and better way to do the same. Just use Rails
nested model forms:
http://ryandaigle.com/articles/2008/7/19/what-s-new-in-edge-rails-nested-models

Hope this helps,