Added user handling via Flask Login.