added some work on custom sign in, not tested