Add authentication from scratch