added loginUser