login and logout botton implementing