Updated the code for formatting the returned user from http login.