Teaching myself how to write a simple Auth System