Added password authentication for trainers.