You shouldn't encounter any problems, but soon as you land in Spain make sure that you request your permit straight away. If after your three month valid stay period you have still not received your permit ( you should have done so) but if you haven't, make sure you carry with you a copy of your marriage certificate as well as your passport.