Validation on the UI inputs