added a header, added devise for user authentication, added flash message