Added error handling for invalid username when requesting User Details.