got logout working, added flash.error to index view