Updating form logic for User create / edit

The form logic for user create / edit was missing the "is admin" checkbox field.

This PR adds that field, updates the tests and also adds a couple of helper methods in the User entity