Fixed "join" behaviour in Query
getCredentialsForRole
Fill session with user's credentials upon login