inbuilt logout function added