Added login player functionality