Fixed pipes and added validations to models, plus several rspecs