functional backend checking mongodb password