fixed some problems with pkg and finally made an extension of the form validation