Removed unused login code