Refactored posts controller. Made like form hidden if user is not logged...

... in