Sprint 5 connecting log-in function to database