Somehow this piece of code prevented people from logging in. Will investigate it