added validation to badly docd attribute