Simple answer to your question, it is illegal. You'll always be under the risk of being found out and facing trouble. Real question is, if your boyfriend wants to marry you, he will have to deal with his wife first. As long as his marriage is still valid, there is not much you can do now.