added validation for new rails