added improvements to login and logging out (refreshing table of Groups)