Added tests and code to force login before posting