Update edmx &

1) validate card function for borrowing books