Added compare

Compares value of field to what's passed in. (useful for things like two password fields)