Working login page, security refactoring, static content for global index page