authentication attempt

broke a few things in the process; but ok enough for right now
adding authentication

and fixing up the app as i went along