Added basic server-side validation