Added a way of adding the user to the principal context