Hi,
I don't know how you got to be working on this problem, but there is a full discussion of it on this page:
http://sherrytowers.com/2018/03/07/logistic-binomial-regression/
If you are doing this as homework for a course, might we remind you that we have a strict homework policy...
Grtz,
PJ