Started implementing login handling.