test, flash messages, validation