Sprint 5 & 6 recognise users & authenticate with database