added logout function in login views