Tried to fix login issue with one browser implementation. Must be tested on server.