add rails validation