Added Login function, functionallity to create posts.