added last login timestamp query