You can take a look at this question, you'll have to customize it for your needs, namely changing the field names. Also, I don't know if this applies to your situation .