replace function for user menu: change logout to login