Added basic validation to the depot form.