added valiation to models and cleaned up course form