fixed database and spelling errors.
Fixed login functionality