some validations, flash messages in progress