Fix authenticate