Adding some server side validations