a login based PHP script to check in and out books