add validates to problem model
show errors invalid problem