Added in tomcat login handling.