add login fragment and login function