validations + flash