Removed useless import of FieldDoesNotExist
Prevent against not allowed directions (closes #2)

Thanks to dlancer for the initial patch.