modified: redirect to home page for explicitly twice login