added logout functionality that closes app and removes user and pw properties