Log in functionality added.