added shared error handling to users form