you should create some sign in helpers. will save you a lot of time in the long run.