View, index and create departments, form validation, error messages.