老伴儿 is a warm, affectionate way for elderly people to refer to their spouse. It implies decades of companionship. Younger couples use 老公/老婆 (husband/wife) instead.
register
老伴儿 is colloquial and endearing. It is almost exclusively used by or about elderly married couples. Using it for a young couple would sound odd or humorous.