creating a widget for logged in user and for non-logged in user to see register/login buttons