loggin status code on file check