Added basic login function.