Added code for the basic login.