Fixed error on login