Added devise with user model, corrrected flash message display.