Bug fix for login against non external users