Log Out function added, Clear function added