adding user check for api