Second commit. Created models, added validation to models and relationships.