moving auth into seperate file. write json func not working correctly
moved auth to seperate file
cleaned up display func. need to revisit this later