Fix double login after logout. Add gitignore