trainer authenticate