Added link and fixed a bug where authentication would not be considered valid even if it was