added flash to login. added logout, pathand helper for flash message