diff --git a/src/main/java/no/nibio/vips/logic/controller/session/UserBean.java b/src/main/java/no/nibio/vips/logic/controller/session/UserBean.java
index 557e418a5c40f96b798ad03198ca6f41c5eefe47..71c58c1aa7f6ada6dd27a6831e02380f41cd9398 100755
--- a/src/main/java/no/nibio/vips/logic/controller/session/UserBean.java
+++ b/src/main/java/no/nibio/vips/logic/controller/session/UserBean.java
@@ -152,12 +152,6 @@ public class UserBean {
      */
     public VipsLogicUser getUser(String username, Integer userAuthenticationTypeId)
     {
-        // If type of authentication is PASSWORD, we return nothing
-        if(userAuthenticationTypeId.equals(UserAuthenticationType.TYPE_PASSWORD))
-        {
-            return null;
-        }
-        
         // We find the authentication with given name
         Query q = em.createNamedQuery("UserAuthentication.findByUsername");
         q.setParameter("username", username);
@@ -172,6 +166,11 @@ public class UserBean {
         }
         return null;
     }
+
+    public UserAuthenticationType createUserAuthenticationTypeInstance(Integer userAuthenticationTypeId)
+    {
+        return em.find(UserAuthenticationType.class, userAuthenticationTypeId);
+    }
     
     public VipsLogicUser storeUserFirstTime(VipsLogicUser user,UserAuthentication auth) throws FormValidationException
     {