adding login,logout controller