Added logout function and start of change psw.