adding render()  to display correct error messages  in case of error in views