debugging bug making impossible to login