Fixing login: adding home call to set cookie before doing the login post