Updated loser.php to use new User methods