Fixing flash messages; implementing devise