Solved bug with login
Now i can return diff configs. Added type model, changed config, added serializer