Added the base of a login progam and fixed transfer bug.