loadForm and validateForm method for add/edit actions

Fixes #4