Fixed login file error exception