Now closing the login box after succesful login.