updated to save current version during login