Minor fix
Fix authenticate() behaviour