moved login and logout codes inside links