Updated code to display user information