employee pin not working when used with ajax