added ?location= to login link
fixed use of fs.readFileSync to work with brfs