added getUsername method