login and stats works