seperated mongo from flask, login working along with all checks