Added better way to storage $user object