added password field for agent registration