Added login status verification to connect files