Fix bug on PUBLIC_PATH constant
Add equal validation
Add message flash for error