bug mixes for login