added some variables and methods. (login.cs)