added getUsername function