Cached user name in .ghci file. and corrected login function.