Added "login" Function.