Login, logout function added, static setting