Please check whether you have closed both locks:
On the one hand the chain lock and on the other hand the U-lock.
The lever to activate the U-lock is located on the opposite side of where the chain lock is inserted and must be pressed to the lower stop. The lock will beep briefly to confirm.
Also, do not forget to activate the parking brake on the brake levers.