This has nothing to do with servlets either.
You're comparing a type UserType with a String literal using the 'equals' method of UserType:
Without seeing the implementation for your UserType.equals method nobody on this site will be able to tell you why it's not behaving the way you expect it to.
Moving to
Java In General (Beginner) since this is not a Servlet issue.