corrects author variable posted to database