Creates login / logput funciton