login and post flows working