Fixed bug where loginPage in annotation would be ignored