Implemeted sign-out. forced username storage to lowercase, to prevent casewise duplicates.