Well, in my opinion the Jedi code is somewhat flawed. There is no emotion, there is peace could be agued that peace is an emotion and so that part doesn't make sense. So, in my opinion, as long as you just love someone, and don't allow those feelings to turn into passion (like Anakin did with Padme) you will be alright. It is very hard to do as some of you probably already know.