split password module to api