Login function successfully added