Implement serverside and client side validatation