Working authentication with SimpleAuthProvider and index page