basic login function and bookservice

add the basic functions for login page and added some resource and code
to finish the book service.