Updated Authentication

Updated to use Mojangs new authentication system