Integrating login functions into save book functio