fix guest login so that it submits the form automatically