add index views
add if else for currently logged in or not
add flash message