adding code to get user name from server