returning user as object instead of array