Added basic login functionality.