Log in functionality added