The law states that care homes should keep elderly residents safe, comfortable, and unharmed. This means that staff should monitor residents, ensure they receive the right medication, and come to their aid if they are in pain.