changed method for getting id away from username