removed .trim from getUsername() trying to fix lotto