Either spelling is correct. It’s essentially down to a personal preference.
http://www.m-w.com/dictionary/resin