adding flask login and changing Session to get_session