Automatic login added and logout button