Rename check() to check_valid().

check() conflicts with builtin Django 1.7 function.

Change-Id: Ic805eaab25e8a2872e37ecdc6f5876875651aea7