added catch so that requests made from the client's computer will still be approved, despite the 127.0.0.1 IP.