added validations to apt and admin