getUser() func. added