login info/logout function added