Adding a write to the login file and getting it to be called through sauth