Some smart validations. Don't worry, it'll also happen on the server