added new handler for generating passwords