implement a bit of validation server side for options page