Revised login function, added authentication to article add, updated
functions.