How unmarried couples can protect themselves when they buy a house together

An increasing number of unmarried couples are buying a home together before marriage, or without any plans to marry, but few are aware of the steps they should be taking to protect themselves if the relationship fails.