add better regex for url validation
build a simple error helper for models