adding logout and sendpassword