User authentication from an existing database