finished implementing the secure password module