ResearchController works again and was tidied-up. Now produces neat flash notices (success message).
Validation is broken. Minlengh is ignored.
Removed some debug code.