removed attr_accessible from all the models and instead used strong params.