use post to create and log in