flow for login as first page and to home, logout to login