fixes login and rm