Fix authentication return False on failure