Added some initial authentication work