added rails flash messages