Replaced user login management functionality with flask-login extension