Work in progress: refactor validationAction