moved login function into player object