Adding flash messages and roles