added password hook for exam environment