Adding getUser functionality