[#1721] log the user in programmatically after registration