added some validation and fixed the administration panel