adding server side constraints