Set isAuthenticated to true after successful authentication