Modified user getById to be functional.