added server-side error controller
updated mongoose schema in projects model