What are the requirements for a valid contract?

What are the requirements for a valid contract?