Remove bad login code