refactor login to mal website