Added basic login logic.