I faced a similar error and later realized that in my users table there is a field named is_active which was set to False by default. I turned that into True and things worked.