added the userId property to loginviewcontroller