Added user validation code - for real this time. Inludes author field