add checkUser function to API for potential authentication uses