Fixed required key issue.

Fixed a bug where required keys werent actually required...