fix NPE on login page