First go at implementing flask-login