Updated for tomcat-managed login