Controlling the access to premises