@nehha,
Your boyfriend needs to sort out his marriage.
Leave him alone. Focus on yourself and completing your studies. If his marriage has ended by the time you graduate, consider dating him.
Stay away from him and his wife until then.
Why you want to be involved with someone who doesn't have the sense to end one relationship before starting another is beyond me, but you need to accept that he may behave the same way in future relationships.