After chasing this for a while i have finally gotten it fixed... or at least its working for me in my scenario

The scenario:
i tried to create users, but when i tried to login, i got an error...