Syntax error fix in authenticate() return hash