Fixed authentication by removing extraneous newline character from the hashed string.