Tried to fix null pointer in authentication agian