added logout url and fixed a bug for loading in users library