Removed flask-security and built custom authentication using flask-login