pub async fn validate_session(token: String) -> Result<Option<u64>>
Validate a session and return the user ID.