fixed some things with posting and loggin gin