using netbeans - code cleanup
+ added authentication for editing news