Minor changes in login code.